package cn.yo2.irain.log4money.app.accountbooks;

import java.util.List;

import cn.yo2.irain.log4money.app.accountbooks.Account;

/**
 * 
 */
public interface IAccountDAO {
	
	
	public void saveAccount(Account account)
			throws RuntimeException;

    /**
     *
     * @param account
     * @throws RuntimeException
     */
	public void updateAccount(Account account)
			throws RuntimeException;

    /**
     *
     * @param account
     * @throws RuntimeException
     */
	public void deleteAccount(Account account) throws RuntimeException;

    /**
     *
     * @param userid
     * @return
     * @throws RuntimeException
     */
	public List findAll(String userid) throws RuntimeException;
	
	public Account findById(String id);
	
	public Account findByAccountName(String accountName);

    /**
     *
     * @return
     */
	public List findInAccount();

    /**
     *
     * @return
     */
	public List findOutAccount();
	
}
